import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    lang:"新加坡",
    logon:false,
  },
  getters:{
    getLang(state){
      return state.lang
    },
    getLogon(state){
      return state.logon
    }
  },
  mutations: {
    setLang(state,type){
      state.lang = type;
    },
    setLogon(state,type){
      state.logon = type;
    }
  },
  actions: {
  },
  modules: {
  }
})
